import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

const app = createApp(App)

// 全局自定义指令 v-focus：在元素挂载到 DOM 后自动聚焦
app.directive('focus', {
  mounted(el) {
    // 某些场景下需要 nextTick，这里简化直接调用
    el.focus && el.focus()
  }
})

app.mount('#app')
